#ifndef HASHTABLE_H_INCLUDED
#define HASHTABLE_H_INCLUDED

typedef int bool;
#define true 1
#define false 0

struct hashTableEntry {
	int key;
	char* value;
	struct hashTableEntry* next;
};

#define MAX_LINE_LENGTH 1024
#define P 31
#define MOD 4999999

extern struct hashTableEntry* hashTable[MOD];

bool add(char* str);
bool find(char* str);
int calcHash(char* str);
struct hashTableEntry* createEntry(int key, char* value);

#endif